<#macro chipTree filepath prefix suffix>
	<@_taskTemplateList path=filepath>
		<#list list as a>
			<li>
				<#local path=filepath+'/'+a.fileName>
			<#if a.directory>
				<a href="javascript:;">${a.fileName} </a>
				<ul>
					<@chipTree path prefix suffix/>
				</ul>
			<#else>
				<a href="javascript:;" onclick="taskTemplateEditor.replaceSelection('${(prefix+path+suffix)?js_string}');$.pdialog.closeCurrent();return false;">
					${a.fileName}
				</a>
			</#if>
			</li>
		<#else>
			<li><a>空目录</a></li>
		</#list>
	</@_taskTemplateList>
</#macro>
<div class="pageFormContent" layoutH="19">
	<ul class="tree treeFolder">
		<@chipTree '/ftl' '<@include path="' '"/>'/>
	</ul>
</div>